<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>《爸爸去哪儿》2023-2-17软件2203作业</title>
</head>

<body>
    <div id="main">
        <div v-if="name!=''&&!isOver"> 
            <h2>欢迎来到爸爸去哪儿！{{name}}，请做出您的选择</h2>
        </div>
        <el-steps :active="index-1" finish-status="success" style="width: 50%;">
            <el-step title="1"></el-step>
            <el-step title="2"></el-step>
            <el-step title="3"></el-step>
            <el-step title="4"></el-step>
            <el-step title="5"></el-step>
        </el-steps>
        <div v-if="name!=''&&!isOver">

            <!-- <el-divider></el-divider> -->
            <div id="subject" v-for="sb in subject">
                <div v-if="sb.index==index">
                    <h3>（{{sb.index}}）{{sb.txt}}</h3>
                    <p class="pick" v-for="p in sb.pick" @click="next(p)">{{p}}</p>
                </div>
            </div>
        </div>
        <div v-if="index==6&&!isOver">
            <input type="button" id="bt1" value="游戏结束，查看亲爹下落" @click="over()">
        </div>
        <div v-if="isOver" id="overDiv">
            <h3 style="color: rgb(75, 75, 75);">{{overTxt}}</h3>
        </div>
    </div>
</body>
<link rel="stylesheet" href="css/index.css">
<script src="js/vue.js"></script>
<script src="element-ui/lib/index.js"></script>
<link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">
<script src="js/index.js"></script>
</html>